package br.com.werp.regras.suporte.visao.decorador;

import org.displaytag.decorator.TableDecorator;

import br.com.werp.regras.geral.util.Dia;
import br.com.werp.regras.geral.util.Html;
import br.com.werp.regras.geral.vos.suporte.ManutencaoVO;

public class Manutencao extends TableDecorator{
	
	public String getManu_problema() {
		ManutencaoVO manutencaoVO = (ManutencaoVO) getCurrentRowObject();
		
		return manutencaoVO.getManu_problema();
	}
	
	public String getManu_solucao() {
        ManutencaoVO manutencaoVO = (ManutencaoVO) getCurrentRowObject();
		
		return manutencaoVO.getManu_solucao();

	}
	
	public String getManu_data() {
		ManutencaoVO manutencaoVO = (ManutencaoVO) getCurrentRowObject();
		
		String data = new Dia(manutencaoVO.getManu_data()).toString();
	   
		return data;
	}
	
	public String getManu_id() {
		ManutencaoVO manutencaoVO = (ManutencaoVO) getCurrentRowObject();
		
		return Html.checkBox("manutencoes", manutencaoVO.getManu_id());
	}

}
